python Split a file path into root and extension

121

python Split a file path into root and extension -

import os
root, ext = os.path.splitext(path)

Comments

Submit
0 Comments